package com.hckj.medical.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hckj.medical.entity.Prescription;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hckj
 * @since 2023-11-25
 */
public interface PrescriptionMapper extends BaseMapper<Prescription> {

    /**
     * 根据id查询就诊记录以及对应的仪器
     * @param id
     * @return
     */
    List<Map> selectBypid(Integer id);

    int selectByDoctorAndId(@Param("did") Integer did,
                            @Param("date") String date);
}
